package com.soft.mainsite.module.web.cms.service;

import com.github.pagehelper.PageInfo;
import com.soft.mainsite.common.base.BaseService;
import com.soft.mainsite.mybatis.model.TCmsTopic;

import java.util.List;

/**
 * Created by binary on 2017/5/12.
 *
 * @author
 * @date
 */
public interface TopicService extends BaseService<TCmsTopic, Integer> {

    /**
     * 所有数据
     *
     * @return
     */
    Integer allCount();

    /**
     * 根据推荐列表查询
     *
     * @param siteId
     * @param isRecommend
     * @param pageSize
     * @return
     */
    List<TCmsTopic> findByRecommendList(Integer siteId, boolean isRecommend, Integer pageSize);

    /**
     * 查询专题列表
     *
     * @param pageNumber
     * @param pageSize
     * @param pojo
     * @return
     */
    PageInfo<TCmsTopic> pageList(Integer pageNumber, Integer pageSize, TCmsTopic pojo);
}
